﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kollektiv.DataModel.NHibernate;

namespace Kollektiv.DataModel.Web.NHibernate
{
    public abstract class WebContentMap<T> : ContentMap<T> where T : WebContent
    {
        public WebContentMap()
            : base()
        {
            HasMany<Comment>(x => x.Comments).Cascade.All();
            References<StarRating>(x => x.StarRating).Not.Nullable();
        }
    }
}
